package com.jf.cloud.distribution.constant;
/**
 * 分销金额类型： 1直推 2间推
 * @author zz
 * @date 2023年5月8日20点15分
 */
public enum DistributionAmountEnum {
    /**
     * 未通过
     */
    DIRECT_PUSH(1, "直推"),
    /**
     * 未审核
     */
    INTERPENETRATION(2,"间推")
    ;

    private int value;
    private String desc;

    public Integer value() {
        return value;
    }
    public String desc() {
        return desc;
    }

    DistributionAmountEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    public static DistributionAmountEnum instance(Integer value) {
        DistributionAmountEnum[] enums = values();
        for (DistributionAmountEnum stateEnum : enums) {
            if (stateEnum.value().equals(value)) {
                return stateEnum;
            }
        }
        return null;
    }
}
